﻿/**
* autor: sminutoli
* fecha: 26/06/07
* comentarios:
*
**/
class com.dinmax.flash.utilities.math.ColorUtils {
	
	public static function hex2rgb(color:Number):Object {
		var o:Object = new Object();
		var hex = color;
		o.r = hex >> 16;
		o.g = (hex ^ hex >> 16 << 16) >> 8;
		o.b = hex >> 8 << 8 ^ hex;
		return o;
	};
		
	public static function rgb2hex(r:Number, g:Number, b:Number):Number {
		return (r << 16 ^ g << 8 ^ b);
	};
	
}